// pages/appointmentReferral/order/appointment/detail/detail.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    underway:true,
    order_log: [{
        title: '设备发放',
        created_at: '2020-12-18 16:23:56',
      },
      {
        title: '项目配置',
        created_at: '2020-12-18 16:23:56',
        content: '孙医生'
      },
      {
        title: '设备押金返还',
        created_at: '2020-12-18 16:23:56',
      },
    ]
  },
  bindtapScan() {
    let that = this
    wx.scanCode({
      success(res) {
        console.log(res);
        if(res.errMsg=="scanCode:ok"){
          that.setData({
            underway:false
          })
        }else{
          that.setData({
            underway:true
          })
        }
      },
      fail:err=>{
        console.log(err);
        that.setData({
          underway:true
        })
      }
    })
  }
})